"""
通知栏页面类
"""
from ..base_page import BasePage
from selenium.webdriver.common.by import By


class NoticesPage(BasePage):
    #数据
    url="/crm/index.php?m=dynamic&a=index"
    #定位器
    information_locator = (By.CSS_SELECTOR,"body > div.navbar.navbar-inverse.navbar-fixed-top > div > div > div.nav-collapse.collapse > ul.nav.pull-right > li:nth-child(1) > a")
    #方法
    def notices(self):
        element=self.driver.find_element(*self.information_locator)
        self.driver.execute_script("arguments[0].click();", element)

